package it.duecaffe.claysoftware.interventi.client.exceptions;

import com.google.gwt.user.client.rpc.IsSerializable;

public class ClayException extends RuntimeException implements IsSerializable {
	
	private static final long serialVersionUID = 1148554590273101798L;
	private String type;
	
	private final static String UNDEFINED = "UNDEFINED";
	
	public ClayException() {
		super("Nessun dettaglio disponibile");
		this.type = UNDEFINED;
	}

	public ClayException(String type, String reason) {
		super(reason);
		this.type = type;
	}
	
	public String getType() {
		return type;
	}
}
